package com.chinacoal.microservice.impl.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.chinacoal.microservice.api.model.QueryUtaskParam;
import com.chinacoal.microservice.api.model.entity.UtaskInfoEntity;

public interface UtaskInfoMapper extends BaseMapper<UtaskInfoEntity> {
	
	public List<UtaskInfoEntity> findList(Page<UtaskInfoEntity> utaskInfoPage, QueryUtaskParam param) throws Exception;
	
	public UtaskInfoEntity getTask(@Param("sysCode") String sysCode, 
								   @Param("sysTaskId") String sysTaskId,
								   @Param("state") String state) throws Exception;
	
	public Integer getTaskInfoListNum(QueryUtaskParam param) throws Exception;
	
	public List<Map<String, Object>> selectTaskCountList(QueryUtaskParam param) throws Exception;
}
